/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.agh.student.logic.webapp;

import java.util.List;
import pl.edu.agh.student.model.Gender;
import pl.edu.agh.student.model.Customer;
import pl.edu.agh.student.model.User;

/**
 *
 * @author janburkot
 */
public interface PersonBean {
    
    String save(Customer person);

    String delete(Customer person);

    String update(Customer person);

    List<Customer> getAll();

    void refresh();

    Customer getSelectedPerson();

    void setSelectedPerson(Customer person);

    void destroy();
    
    boolean hasUser(Customer person);
    public String createUser(User user);
    Gender[] getGender();

}
